import {RouteRecordRaw} from "vue-router"

export const workDocumentRoute: RouteRecordRaw[] = [
    {
        path: "/document",
        name: "document",
        component: () => import("@/pages/workDocument/WorkDocument.vue"),
        meta: {
            left: "document"
        },
        children: [
            {
              path: "/document",
              redirect: "/myCreated"
            },
            {
                path: "/myCreated",
                name: "MyCreated",
                component: () => import("@/pages/workDocument/views/MyCreated.vue"),
                meta: {
                    left: "document",
                    subLeft: "myCreated"
                }
            },
            {
                path: "/myFollowed",
                name: "MyFollowed",
                component: () => import("@/pages/workDocument/views/MyFollowed.vue"),
                meta: {
                    left: "document",
                    subLeft: "myFollowed"
                }
            },
            {
                path: "/myJoined",
                name: "MyJoined",
                component: () => import("@/pages/workDocument/views/MyJoined.vue"),
                meta: {
                    left: "document",
                    subLeft: "myJoined"
                }
            }
        ]
    }
]